import request from '@/utils/request.js'

// 获取轮播图数据
export function getBannerList() {
	return request({
		'url': '/activity/activityHome/controllerList',
		'method': 'get',
		headers: {
			isToken: false
		},
	})
}

// 获取导航栏数据
export function getNavList() {
	return request({
		'url': '/activity/activityHome/queryType',
		'method': 'get',
		headers: {
			isToken: false
		},
	})
}

// 获取活动列表数据
export function getActivityList(data) {
	return request({
		'url': '/activity/activityHome/list',
		'method': 'post',
		'data': data,
		headers: {
			isToken: false
		},
	})
}

// 活动搜索
export function searchActivity(data) {
	return request({
		'url': '/activity/activityHome/inquireAbout',
		'method': 'post',
		headers: {
			isToken: false
		},
		'data': data
	})
}

// 查询打卡信息
export function CheckingInPersonInfo(data) {
	return request({
		'url': '/activity/activityChecking/clock',
		'method': 'get',
		headers: {
			isToken: true
		},
		'data': data
	})
}

// 打卡
export function ActivityChecking(data) {
	return request({
		'url': '/activity/activityChecking/punch',
		'method': 'post',
		headers: {
			isToken: true
		},
		'data': data
	})
}

//打卡记录 
export function ActivityCheckingRecord(data) {
	return request({
		'url': '/activity/activityChecking/record',
		'method': 'get',
        data
	})
}

//打卡统计 
export function CheckingStatistics(data) {
	return request({
		'url': '/activity/activityChecking/statistics',
		'method': 'get',
        data
	})
}
